﻿import 'package:star_author/generated/json/base/json_convert_content.dart';
import 'package:star_author/model/wallet_automatic_list_item_entity.dart';

WalletAutomaticListItemEntity $WalletAutomaticListItemEntityFromJson(Map<String, dynamic> json) {
	final WalletAutomaticListItemEntity walletAutomaticListItemEntity = WalletAutomaticListItemEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		walletAutomaticListItemEntity.id = id;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		walletAutomaticListItemEntity.status = status;
	}
	final String? createdAt = jsonConvert.convert<String>(json['created_at']);
	if (createdAt != null) {
		walletAutomaticListItemEntity.createdAt = createdAt;
	}
	final String? detail = jsonConvert.convert<String>(json['detail']);
	if (detail != null) {
		walletAutomaticListItemEntity.detail = detail;
	}
	final String? cashAmt = jsonConvert.convert<String>(json['cash_amt']);
	if (cashAmt != null) {
		walletAutomaticListItemEntity.cashAmt = cashAmt;
	}
	return walletAutomaticListItemEntity;
}

Map<String, dynamic> $WalletAutomaticListItemEntityToJson(WalletAutomaticListItemEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['status'] = entity.status;
	data['created_at'] = entity.createdAt;
	data['detail'] = entity.detail;
	data['cash_amt'] = entity.cashAmt;
	return data;
}